<?php
	class School_manage_menu_model extends CI_Model{

	 	function __construct(){
        	parent::__construct();
    	}

		function get_menu_list($is_manage,$parent = 0){
            $where = " pid = {$parent} and status =1 ";
            if($is_manage == 0){
                $where .= " and is_manage !=1 ";
            }

            $sql = "SELECT * FROM {$this->db->dbprefix}o2o_school_manage_menus WHERE $where order by sort_num asc ";
            $result = $this->db->query($sql)->result_array();
            return $result;
        }
    }
